package com.chunuo.aclservice.service;

import com.alibaba.fastjson.JSONObject;
import com.chunuo.aclservice.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-08-05
 */
public interface PermissionService extends IService<Permission> {

    List<Permission> queryAllMenu();

    void removeChildById(String id);

    List<String> selectPermissionValueByUserId(String id);

    List<JSONObject> selectPermissionByUserId();

    List<Permission> findUserBIndPermission(List<String> roleIds);

    List<Permission> getUserBindPermission(List<String> roleIds);

    List<Permission> getUserBindPermission(String userId);

    List<Permission> getRoleBindPermission(String roleId);
}
